package com.yyfax.infrastructure.base;

import com.umeng.analytics.MobclickAgent;
import com.yyfax.infrastructure.mvp.ViewFragment;

/**
 * Created by HenryZhang on 2016/10/25.
 * Copyright © 2016 www.yyfax.com. All Rights Reserved.
 */
public abstract class AnalyticsFragment extends ViewFragment {

	public AnalyticsFragment() {}

	@Override
	public void onResume() {
		super.onResume();
		MobclickAgent.onPageStart(getClass().getSimpleName());
	}

	@Override
	public void onPause() {
		super.onPause();
		MobclickAgent.onPageEnd(getClass().getSimpleName());
	}
}
